;**************************************************************************************************;
;File:			cs100.o.asm
;Author:		Jack morris
;Date started: 	1.12.2015
;Date compleated:
;**************;***************;***************;***************;****************************************;
;LABELS:
;                .DIRECTIVES     operands
;                 instructions		operands
                                                ;comments
                .NOLIST                         ;dont want the inc in the list
                .INCLUDE        "m328pdef.inc"  ;Include the 328 aliases
                .LIST                           ;Everything else is in the list
                
								.EQU						SIZE = 15				; set an immidiat of SIZE that is euqal 15
								.DEF						counter = R19		;Names a register counter

								.DSEG
Array:					.BYTE						SIZE * 4				;reserves 4 15 byte ints 
								
								.CSEG
											
								ldi							counter, 0			;set counter to 0
								
Top:
								cpi							counter, SIZE		;compairs SIZE to counter
								breq						Count						;skips to count
								breq						end							;if equal finishes the program
								
Count:					
								inc							Counter					;add one to counter
								breq						Top							;goes back to top

End:
								.EXIT														;ends the program